/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022.
 * Description: hkids kill process cmdline option.
 * Author: wanghuizhao
 * Create: 2022-10-24
 */

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/rtos/dim_kernel.h>

static bool dim_kernel_response_enabled;

bool get_dim_kernel_response_enabled(void)
{
	return dim_kernel_response_enabled;
}
EXPORT_SYMBOL_NS(get_dim_kernel_response_enabled, HW_RTOS_NS);

static int __init dim_kernel_response_setup(char *str)
{
	int val = 0;

	if (!get_option(&str, &val))
		return 0;
	if (val > 0)
		dim_kernel_response_enabled = true;

	return 1;
}
__setup("dim_kernel_response=", dim_kernel_response_setup);